<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://sargue.net/jsptags/time" prefix="javatime" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <jsp:include page="../common/header.jsp"/>
    <jsp:include page="../../common/layer.jsp"></jsp:include>
     <jsp:include page="../../common/mydate.jsp"></jsp:include>
</head>
<body>
<form action="${pathUrl }/admin/rechargeLog/index" method="post" id="userForm">
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">充值记录</a></li>
    </ul>
</div>

<div class="session-main">
    <table style="border: 0px;width:100%;">
      <tr>
       <td align="left" width="10%">

       </td>
       <td align="right" width="90%">
	       <ul class="seachform" style="margin-top: 15px;float: right;">
       		<li><label>用户名：</label><input name="username"  type="text" class="scinput"></li>
	        <li>
		        <input readonly="readonly" placeholder="开始时间" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="startDate"  type="text" class="scinput">
		        -
		        <input readonly="readonly" placeholder="结束时间" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="endDate"  type="text" class="scinput">
	        </li>
            <li><label>&nbsp;</label><input name="" type="submit" class="scbtn"  value="查询"></li>
	    </ul>
       </td>
      </tr>
    </table>
    
    <div id="loadDiv">
        <table class="tablelist">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户</th>
                <th>充值单</th>
                <th>充值时间</th>
                <th>充值金额</th>
            </tr>
            </thead>
            <tbody>

            <c:forEach items="${rechargeLogVos}" var="temp">
                <tr>
                    <td>${temp.rechargeLog.id}</td>
                    <td>${temp.vipUser.username}</td>
                    <td>${temp.rechargeLog.rechargeSn}</td>
                    <td><javatime:format value="${temp.rechargeLog.addTime}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                    <td>${temp.rechargeLog.money}</td>
                </tr>
            </c:forEach>


            </tbody>
        </table>
    </div>
    <div id="pagerDiv">
        <a href="${url}?pageNow=1&name=${name}">首页</a><a href="${url}?pageNow=${Pager.current==1?1:Pager.current-1}&name=${name}">上一页</a>&nbsp;&nbsp; ${Pager.current}/${pages} &nbsp;&nbsp;<a href="${url}?pageNow=${Pager.current==pages?pages:Pager.current+1}&name=${name}">下一页</a> <a href="${url}?pageNow=${pages}&name=${name}">尾页</a>
    </div>

   
</div>
</form>
<jsp:include page="../../common/laypage.jsp"/>
<script type="text/javascript">
$(function(){
	
	ajaxLoad();
});
//异步加载数据
function ajaxLoad(){

}

function deleteOne(id){
	ydlConfrim("你是否删除选择的数据？",function(){
		var url="${pathUrl}/admin/rechargeLog/delete";
		$.post(url,{id:id},function(result){
			ajaxLoad();
			ydlMsg(result.msg);
		});
	});
	
}
</script>
</body>
</html>